function checkname(){
		var userName = document.getElementById('userName').value;
		var message="";
		if(userName==""){
			var message = "用户名不能为空！";
		}
		var div = document.getElementById("musername");
		div.innerHTML=message;
	}

function checkphone(){
	var message="";
	var phone = document.getElementById('phone').value;
	if(phone==""){
		message = "电话号码不能为空！";
	}
	var div = document.getElementById("mphone");
	div.innerHTML=message;
}

function checkemail(){
	var message="";
	var email = document.getElementById('email').value;
	if(email==""){
		message = "邮箱不能为空！";
	}
	var div = document.getElementById("memail");
	div.innerHTML=message;
}

function checklibcard(){
	var message="";
	var lib_card = document.getElementById('lib_card').value;
	if(lib_card==""){
		message = "编号不能为空！";
	}
	var div = document.getElementById("mlibcard");
	div.innerHTML=message;
}

function checkpassword(){
	var message="";
	var password = document.getElementById('password').value;
	if(password==""){
		message = "密码不能为空！";
	}
	var div = document.getElementById("mpassword");
	div.innerHTML=message;
}

function checkuser(){
	var userName = document.getElementById('userName').value;
	var phone = document.getElementById('phone').value;
	var email = document.getElementById('email').value;
	var lib_card = document.getElementById('lib_card').value;
	var password = document.getElementById('password').value;
	if(userName==""){
		alert("姓名不能为空！");
		return false;
	}
	if(lib_card==""){
		alert("编号不能为空！");
		return false;
	}
	if(password==""){
		alert("密码不能为空！");
		return false;
	}
	if(phone==""){
		alert("电话号码不能为空！");
		return false;
	}
	if(email==""){
		alert("邮箱不能为空！");
		return false;
	}

}

function checkmanage(){
	var userName = document.getElementById('userName').value;
	var password = document.getElementById('password').value;
	if(userName==""){
		alert("用户名不能为空！");
		return false;
	}
	if(password==""){
		alert("密码不能为空！");
		return false;
	}
}